package com.mu.service;

import com.mu.common.Result;
import com.mu.controller.dto.UserDTO;
import com.mu.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mu
 * @since 2022-10-21
 */
public interface UserService extends IService<User> {

    //通过学工号查询用户信息
    User findOneByAccount(String  account);

    //登录
    Result login(UserDTO userDTO);

    //获得身份信息
    String  getRoleByAccount(String account);

}
